package dataMgr;

import org.hibernate.Session;

public class LibManager {
	
	 private Session session = null;
	 public LibManager(Session session) {
	  if(session == null)
	    throw new 
	      RuntimeException("Invalid session object.");
	  this.session = session;
	 }
	 
	 public void saveLib(Lib lib){
	  session.save(lib);
	 }
	 public void updateLib(Lib lib){
	  session.update(lib);
	 }
	 public void deleteLib(Lib lib) {
	  session.delete(lib);
	 }
}
